﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Simple.ViewModel
{
    public class ChangePassWordDto
    {
        /// <summary>
        /// 登录账号
        /// </summary>
        public string LoginNo { get; set; }
        [Required(ErrorMessage = "新密码不能为空")]
        [StringLength(20, MinimumLength = 6, ErrorMessage = "密码长度6-16位")]
        public string NewPassWord { get; set; }
        [Required(ErrorMessage = "再次确认密码不能为空")]
        [Compare("NewPassWord", ErrorMessage = "确认密码与新密码不一致")]
        [StringLength(16, MinimumLength = 6, ErrorMessage = "密码长度6-16位")]
        public string CondirmNewPassWord { get; set; }
    }
}
